package com.example.wxback.model;

import com.example.wxback.util.constants.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class MessageInfo {

    private int id;
    private int userId;
    private int conversationId;
    private String nickname;
    private String content;
    private Integer isSelf;

    @JsonFormat(pattern = Constants.DATETIME_FORMAT, timezone = "GMT+8")
    private Date createDate;

    @JsonFormat(pattern = Constants.DATETIME_FORMAT, timezone = "GMT+8")
    private Date updateDate;
}
